/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.awt.Image;

/**
 *
 * @author Young Ran
 */
public class NewsEvent {
    private int id;
    private String name;
    private String detail;
    private String type;
    private String time;
    private Image image;
    public NewsEvent() {
    }

    public NewsEvent(int id, String name, String detail, String type, String time,Image image) {
        this.id = id;
        this.name = name;
        this.detail = detail;
        this.type = type;
        this.time = time;
        this.image=image;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getDetail() {
        return detail;
    }

    public String getType() {
        return type;
    }

    public String getTime() {
        return time;
    }

    public Image getImage() {
        return image;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setImage(Image image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "<html><p style='padding:20px;'><font size='6' color='white'><b>"+name + "</font></b><br /><font color='white' size='4'><br />" + detail+"<br />" + time + "</font></p></html>";
    }
    
    
    
}
